//########################################################################
//## (C) by Edwin Vriethoff under Microsoft Reciprocal License (Ms-RL)  ##
//## See http://www.codeplex.com/SPUserPoll/license for full license    ##
//##                                                                    ##
//## http://edwin.vriethoff.net http://www.codeplex.com/SPUserPoll/     ##
//########################################################################

using System;
using System.Collections.Generic;
using System.Text;

namespace SPUserPoll.Business.Components
{
    public class Cache
    {
        /// <summary>
        /// Adds information to the cache
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        public static void AddToCache(string key, object value)
        {
            Data.Components.Cache cache = new SPUserPoll.Data.Components.Cache();
            cache.AddToCache(key, value);
        }

        /// <summary>
        /// Remove an object from the cache
        /// </summary>
        /// <param name="key"></param>
        public static void RemoveFromCache(string key)
        {
            Data.Components.Cache cache = new SPUserPoll.Data.Components.Cache();
            cache.RemoveFromCache(key);
        }

        /// <summary>
        /// Get an object from the cache
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static object GetFromCache(string key)
        {
            Data.Components.Cache cache = new SPUserPoll.Data.Components.Cache();
            return cache.GetFromCache(key);
        }
    }
}
